package com.sykj.controller;

import com.sykj.bean.card.BisNurseBagDto;
import com.sykj.mapper.GameLoadMapper;
import com.sykj.service.CardGameProductService;
import com.sykj.util.reponse.CommonEnum;
import com.sykj.util.reponse.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: BeautyClub
 * @description:
 * @author: qiaoli
 * @create: 2020-08-08 14:18
 */

@RestController
@RequestMapping("/cardGameProduct")
public class CardGameProductController {
    @Autowired
    CardGameProductService cardGameProductService;
    @Autowired
    GameLoadMapper gameLoadMapper;
@GetMapping("/queryByid/{cardGameId}")
    public ResultBody queryByid(@PathVariable("cardGameId")String cardGameId){
    List<BisNurseBagDto> byGameId = gameLoadMapper.getByGameId(cardGameId);
    return  new ResultBody(CommonEnum.SUCCESS,byGameId);
    }
}
